package com.maylann.ratiocheater.dao;

import com.maylann.ratiocheater.model.Task;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * by Maylann
 */
public interface TaskDao {

    /**
     * Save the progress of the current running tasks.
     *
     * @param tasks The list of active tasks.
     */
    void save(List<Task> tasks);

    /**
     * Load the progress of active tasks.
     *
     * @return List of active tasks.
     */
    List<Task> load();
}
